import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/login',
    method: 'post',
    data
  })
}
//获取当前登录用户信息
export function getInfo() {
  return request({
    url: '/userinfo',
    method: 'get'
  })
}


export function logout() {
  return request({
    url: '/logout',
    method: 'post'
  })
}

export function list(data) {
  return request({
    url: '/user/list',
    method: 'post',
    data
  })
}

export function add(data) {
  return request({
    url: '/user/add',
    method: 'post',
    data
  })
}

export function del(data) {
  return request({
    url: '/user/del',
    method: 'post',
    data
  })
}
export function mod(data) {
  return request({
    url: '/user/mod',
    method: 'post',
    data
  })
}
export function queryid(data) {
  return request({
    url: '/user/queryid',
    method: 'post',
    data
  })
}
